.layerMangeContainer {
  overflow: auto;
  height: 100%;
  position: relative;

  &.dragging {
    background-color: var(--semi-color-fill-0);
  }

  .dragOverlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(var(--semi-blue-0), 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    z-index: 100;
    border: 2px dashed var(--semi-color-primary);
    pointer-events: none;

    span {
      color: var(--semi-color-text-0);
      font-size: 16px;
    }

    :global(.semi-icon) {
      color: var(--semi-color-primary);
    }
  }

  .addLayer {
    display: flex;
    margin-bottom: 10px;
    >button {
      margin: 0 10px;
    }
  }
  &:global {
    &.drag-over {
      border: 2px dashed var(--semi-color-primary);
      background-color: var(--semi-color-fill-0);
    }
  }
}
.layerItemControl {
  width: 100%;
  padding: 0 8px;
  overflow: hidden;
  background-color: var(--semi-color-bg-0);
  border-bottom: 1px solid var(--semi-color-border);
  transition: all ease 0.2s;

  .header {
    display: flex;
    align-items: center;
    height: 42px;
    padding: 8px 0;
    cursor: auto;
    .switchShow {
      flex-shrink: 0;
      margin: 0 2px;
    }
    .layerName {
      flex-grow: 1;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      cursor: pointer;
    }
    .icons {
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-self: flex-end;
      span {
        transition: all ease 0.2s;
      }
      .activeIcon span {
        color: var(--semi-color-primary);
        font-size: 14px;
      }
      .activeIcon :hover span {
        color: var(--semi-color-primary) !important;
      }
      .rotateIcon span {
        transform: rotate(-180deg);
      }
      .rotateIconLeft span {
        transform: rotate(90deg);
      }
    }
  }
  .legendContainer {
    max-height: 0;
    padding: 0 10px;
    transition: all 0.3s cubic-bezier(0, 0, 0.2, 1);
    &.open {
      max-height: 1000px;
      transition-timing-function: ease-in;
    }
  }
  :global {
    .semi-typography-icon {
      cursor: pointer;
      color: var(--semi-color-text-1);
      padding: 2px;
      transition: all ease 0.3s;
      &:hover {
        color: var(--semi-color-text-0);
        background: var(--semi-color-tertiary-light-hover);
        border-radius: 3px;
      }
      .semi-icon-default {
        font-size: 14px;
      }
    }
  }
}
.renderPopover {
  margin-left: 65px;
}
.setting {
  width: 320px;
}
.show {
  display: block;
  opacity: 1;
}

.hide {
  display: none;
  opacity: 0;
}
.activeIcon {
  color: var(--semi-color-primary);
  font-size: 14px;
}
.renderPopTitle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  .title {
    display: flex;
    align-items: center;
    width: 290px;
    padding: 4px;
    font-weight: bold;
    font-size: 14px;
    border-radius: 4px;
    .layerName {
      display: inline-block;
      max-width: 150px;
      overflow: hidden;
      font-weight: 600;
      white-space: nowrap;
      text-overflow: ellipsis;
    }
  }
  .closebtn {
    color: var(--semi-color-text-1);
    font-size: 18px;
    cursor: pointer;
    transition: all ease 0.3s;
  }
  .rightBtn {
    right: 10px;
  }
  .leftBtn {
    left: 10px;
  }
  .closebtn :hover {
    color: #000;
  }
}

.img {
  width: 100%;
  height: 22px;
  padding: 1px;
  border-radius: 4px;
}

.paramsSetting {
  :global {
    .semi-form-field-label {
      font-weight: normal;
    }
    .semi-form-vertical .semi-form-field {
      padding: 0; 
      margin-bottom: 10px;
    }
  }
}

.uploadBox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: transparent;
  border: 1px dashed var(--semi-color-border);
  border-radius: 4px;
  transition: all 0.2s;
  cursor: pointer;
  gap: 8px;

  &:hover {
    border-color: var(--semi-color-primary);
  }

  :global(.semi-icon) {
    color: var(--semi-color-text-2);
    margin: 0;
  }
}

.uploadText {
  margin: 0;
  text-align: left;

  .mainText {
    display: block;
    color: var(--semi-color-text-0);
    font-size: 14px;
    margin-bottom: 2px;
  }

  .subText {
    display: block;
    color: var(--semi-color-text-2);
    font-size: 12px;
  }
}

.uploadArea {
  margin: 0 0 12px 0;
  width: 100%;

  :global {
    .semi-upload-drag {
      width: 100%;
    }
    
    // 移除 Semi UI 上传组件的默认背景色
    .semi-upload-drag-area-legal {
      background-color: transparent !important;
    }
  }
}